# -*- coding: utf-8  -*-
#!/usr/local/bin/python

__author__ = 'jian.yao'

class AppServerStatus:
    Unavailable = 0
    Available   = 1

class AppServerOrderType(object):
    LAST_UPDATE     = 1
    CREATE_TIME     = 2
    HOST            = 3
    CREATOR         = 4
    LAST_EDITOR     = 5
    DEFAULT         = -LAST_EDITOR

    FIELDS = {
        LAST_UPDATE     : ("last_update",),
        -LAST_UPDATE    : ("-last_update",),
        CREATE_TIME     : ("create_time",),
        -CREATE_TIME    : ("-create_time",),
        HOST            : ("host",),
        -HOST           : ("-host",),
        CREATOR         : ("creator",),
        -CREATOR        : ("-creator",),
        LAST_EDITOR     : ("last_editor",),
        -LAST_EDITOR    : ("-last_editor",),
    }

class AppServerType:
    APPServer       = 0
    FileServer      = 1
    MPSServer       = 2
    SNSServer       = 3
    LOGServer       = 4

